var myColor = ['#957cff', '#64a7e0', '#3c97ff', '#0ae5fb', '#a0efa0', '#e0c870', '#f56c6c', '#fb4343', '#4caf50', '#8bc34a', '#cddc39', '#ffeb3b', '#ffc107', '#ff5722', '#795548', '#c47bd1', '#eb95b2'];
export default {
  //左侧饼图  样品检测数
  optionNew1: {
    tooltip: {  //鼠标悬浮样式
      trigger: 'item',
      formatter: '{b}',
      enterable: true
    },
    legend: {  //图例组件
      orient: 'vertical',
      bottom: '30%',
      left: '14%',
      icon: 'none',
      data: ['在检样品数', '未检样品数'],
      textStyle: {  //图例的公共文本样式
        color: ['#2de551', '#fc6552'],
        fontSize: 18,
        lineHeight: 28,
      },
    },
    series: [{
      'name': '样品检测',
      'type': 'pie',
      'radius': ['60%', '75%'],
      'avoidLabelOverlap': false,
      'startAngle': -18,
      'color': ['#9f8fc1'],
      'hoverAnimation': true,
      'legendHoverLink': false,
      'label': {
        'normal': {
          'show': false,
          'position': 'center'
        },
        'emphasis': {
          'show': false
        }
      },
      'labelLine': {
        'normal': {
          'show': false
        }
      },
      'data': [{
        'value': 0, //空白项固定值 占比40%
        itemStyle: {
          normal: {
            color: 'transparent'
          }
        }

      }, {
        'value': 20,
        'name': '在检样品数',
        itemStyle: {
          normal: {
            color: '#2de551',
            shadowColor: '#eee',
            shadowBlur: 5,
          }
        }
      }, {
        'value': 40,
        'name': '未检样品数',
        itemStyle: {
          normal: {
            color: '#fc6552',
            shadowColor: '#eee',
            shadowBlur: 5,
          }
        }
      }]
    },]
  },
  //右侧柱状图  月度送样统计量
  option3: {
    tooltip: {
      trigger: 'axis',
      axisPointer: {
        type: 'shadow'
      }
    },
    grid: {
      left: '3%',
      right: '12%',
      bottom: '5%',
      top: '2%',
      containLabel: true,
    },
    xAxis: {
      type: 'value',
      position: 'top',
      axisLine: {  //x轴坐标轴轴线相关设置
        lineStyle: {
          color: '#fff',
          opacity: 0
        }
      },
      axisTick: {  //x轴坐标轴刻度相关设置
        show: false,
      },
      axisLabel: {  //x轴坐标轴刻度标签的相关设置
        fontSize: 16,
        fontWeight: 400,
      },
      splitLine: {  //坐标轴在 grid 区域中的分隔线
        show: false,
      },
      min: 0,
      max: 100,
      interval: 20,
    },
    yAxis: {
      type: 'category',  //坐标轴类型。
      data: ['科室4', '科室3', '科室2-4', '科室2-3', '科室2-2', '科室2-1', '科室1-2', '科室1-1'],
      axisLine: {  //Y轴坐标轴轴线相关设置
        lineStyle: {
          color: '#eee',
          opacity: 0
        }
      },
      axisTick: {  //Y轴坐标轴刻度相关设置
        lineStyle: {
          color: '#eee',
          opacity: 0
        }
      },
      axisLabel: {  //Y轴坐标轴刻度标签的相关设置
        fontSize: 14,
        fontWeight: 400,
      }
    },
    series: [{
      name: '4月',
      type: 'bar',
      label: {
        normal: {
          show: true,
          position: "right",
          distance: 10,
          fontSize: 17,
          color: myColor,
        }
      },
      itemStyle: {
        normal: {
          color: function (params) {
            var num = myColor.length;
            return myColor[params.dataIndex % num]
          },
          shadowColor: '#2d82ca',
          shadowBlur: 5,
          fontSize: 14,
        }
      },
      data: [34, 56, 78, 32, 86, 92, 14, 13]
    },]
  },

  option4: {
    tooltip: {
      trigger: 'axis',
      axisPointer: {
        type: 'shadow'
      }
    },
    grid: {
      left: '0%',
      right: '12%',
      bottom: '8%',
      top: '2%',
      containLabel: true,
      x: 10,
    },
    xAxis: {
      type: 'value',
      position: 'top',
      axisLine: {  //x轴坐标轴轴线相关设置
        lineStyle: {
          color: '#fff',
          opacity: 0
        }
      },
      axisTick: {  //x轴坐标轴刻度相关设置
        show: false,
      },
      axisLabel: {  //x轴坐标轴刻度标签的相关设置
        show: false,
      },
      splitLine: {  //坐标轴在 grid 区域中的分隔线
        show: false,
      },
      min: 0,
      max: 100,
      interval: 20,
    },
    yAxis: {
      type: 'category',  //坐标轴类型。
      data: ['科室4', '科室3', '科室2-4', '科室2-3', '科室2-2', '科室2-1', '科室1-2', '科室1-1'],
      axisLine: {  //Y轴坐标轴轴线相关设置
        lineStyle: {
          color: '#eee',
          opacity: 0
        }
      },
      axisTick: {  //Y轴坐标轴刻度相关设置
        lineStyle: {
          color: '#eee',
          opacity: 0
        }
      },
      axisLabel: {  //Y轴坐标轴刻度标签的相关设置
        fontSize: 14,
        fontWeight: 400,
      }
    },
    series: [{
      name: '3月',
      type: 'bar',
      label: {
        normal: {
          show: true,
          position: "right",
          distance: 10,
          fontSize: 17,
          color: myColor,
        }
      },
      itemStyle: {
        normal: {
          color: function (params) {
            var num = myColor.length;
            return myColor[params.dataIndex % num]
          },
          shadowColor: '#2d82ca',
          shadowBlur: 5,
          fontSize: 14,
        }
      },
      data: [1, 1, 1, 1, 1, 1, 1, 1]
    },]
  },

  option5: {
    tooltip: {
      trigger: 'axis',
      axisPointer: {
        type: 'shadow'
      }
    },
    grid: {
      left: '1%',
      right: '12%',
      bottom: '8%',
      top: '2%',
      containLabel: true
    },
    xAxis: {
      type: 'value',
      position: 'top',
      axisLine: {  //x轴坐标轴轴线相关设置
        lineStyle: {
          color: '#fff',
          opacity: 0
        }
      },
      axisTick: {  //x轴坐标轴刻度相关设置
        show: false,
      },
      axisLabel: {  //x轴坐标轴刻度标签的相关设置
        show: false,
      },
      splitLine: {  //坐标轴在 grid 区域中的分隔线
        show: false,
      },
      min: 0,
      max: 100,
      interval: 20,
    },
    yAxis: {
      type: 'category',  //坐标轴类型。
      data: ['科室4', '科室3', '科室2-4', '科室2-3', '科室2-2', '科室2-1', '科室1-2', '科室1-1'],
      axisLine: {  //Y轴坐标轴轴线相关设置
        lineStyle: {
          color: '#eee',
          opacity: 0
        }
      },
      axisTick: {  //Y轴坐标轴刻度相关设置
        lineStyle: {
          color: '#eee',
          opacity: 0
        }
      },
      axisLabel: {  //Y轴坐标轴刻度标签的相关设置
        fontSize: 14,
        fontWeight: 400
      }
    },
    series: [{
      name: '2月',
      type: 'bar',
      label: {
        normal: {
          show: true,
          position: "right",
          distance: 10,
          fontSize: 17,
          color: myColor,
        }
      },
      itemStyle: {
        normal: {
          color: function (params) {
            var num = myColor.length;
            return myColor[params.dataIndex % num]
          },
          shadowColor: '#2d82ca',
          shadowBlur: 5,
          fontSize: 14,
        }
      },
      data: [30, 56, 78, 32, 86, 92, 14, 13]
    },]
  },

}
